import request from '@/utils/request'

// 小程序用户列表【business:miniuser:list】
export function list(data) {
  return request({
    url: `/miniuser/list?pageSize=${data.pageSize || 10}&pageNum=${data.pageNum || 1}`,
    method: 'post',
    data
  })
}
// 修改状态【business:miniuser:edit】
export function editState(data) {
  return request({
    url: '/miniuser/edit/state',
    method: 'post',
    data
  })
}
// 修改会员等级【business:miniuser:edit】
export function editGrade(data) {
  return request({
    url: '/miniuser/edit/grade',
    method: 'post',
    data
  })
}